package com.platform.apex.cma.db;

import java.util.List;

import org.skife.jdbi.v2.IDBI;

import com.platform.apex.util.SQLMetadataConnector;

public class MySqlManager {
	private static IDBI dbi;
	private static MysqlDao mysqlDao;

	public static void init(SQLMetadataConnector connector) {
		dbi = connector.getDBI();
		mysqlDao = dbi.onDemand(MysqlDao.class);
	}

	public static void  create(List<AllinOneData> allinOneData) {
		try {
			 mysqlDao.insert(allinOneData);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}
